#include <stdio.h>

int main(int argc, char *argv[]) {

    int n = 0;
    scanf("%d", &n);

    for (size_t i = 2; i <= n; i++)
    {
        while (n!=i)
        {
            if(n%i==0){
                printf("%d*", i);
                n /= i;
            }else
                break;
        }
        
    }
    printf("%d\n",n);
    

    return 0;
}